package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface CustomerDao {
    /**
     * 分页查询
     * @param start
     * @param size
     * @param customerName
     * @return
     */
    List<Customer> getPage(int start, Integer size, String customerName);

    /**
     * 更新数据

     * @param customer
     */
    void update( Customer customer);

    /**
     * 插入数据
     * @param customer
     */
    void insert(Customer customer);

    /**
     * 删除用户信息
     * @param parseInt
     */
    void delete(int parseInt);

    /**
     * 用户下拉列表
     * @param q
     * @return
     */
    List<Customer> selectByName(String q);
}
